import Vue from 'vue'
import Antd from 'ant-design-vue';
// import Button from 'ant-design-vue/lib/button';
import { message } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css';
// 自适应适配
import './utils/rem'
// echarts图表
import * as echarts from 'echarts'

import App from './App.vue'
import router from './router'
import store from './store'

Vue.use(Antd)
import html2canvas from 'html2canvas'
import Print from './commonjs/print.js'
import {uuid} from './utils/uid.js'
import {apis} from "./request/api.js"
import {deobj} from './utils/common.js'
// mapbox地图
import mapBoxGl from 'mapbox-gl'
Vue.prototype.$mapboxgl = mapBoxGl

Vue.prototype.$api = apis
Vue.prototype.$uid = uuid
Vue.prototype.$deobj = deobj

Vue.prototype.$html2canvas = html2canvas
Vue.prototype.$print = Print
Vue.prototype.$message = message
Vue.prototype.$store = store
Vue.prototype.$echarts = echarts

// Vue.use(Print);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
